﻿CREATE TRIGGER [dbo].[TRG_VAT_INVOICE_UPDATE]
   ON  dbo.VAT_INVOICE
   AFTER INSERT, UPDATE
AS
BEGIN
    SET NOCOUNT ON;

    UPDATE VAT_INVOICE
    SET LAST_UPDATE = GETDATE(), 
    LAST_UPDATE_USER = SUSER_NAME()
    WHERE ID IN (SELECT ID FROM INSERTED)
END
